//
//  ActionDetilCell.m
//  A段项目,漫画
//
//  Created by dlios on 15-4-30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ActionDetilCell.h"

@implementation ActionDetilCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picimageView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picimageView];
        self.picimageView.backgroundColor = [UIColor whiteColor];
        [_picimageView release];
        
        self.nameLabel = [[UILabel alloc]init];
//        self.nameLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
        
        self.areaLabel = [[UILabel alloc]init];
//        self.areaLabel.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:self.areaLabel];
        [_areaLabel release];
        
        self.directorLabel = [[UILabel alloc]init];
//        self.directorLabel.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.directorLabel];
        [_directorLabel release];
        
        self.characterLabel = [[UILabel alloc]init];
//        self.characterLabel.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.characterLabel];
        [_characterLabel release];
        
        self.update_stringLabel = [[UILabel alloc]init];
//        self.update_stringLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.update_stringLabel];
        [_update_stringLabel release];
        
        self.publish_timeLabel =[[UILabel alloc]init];
//        self.publish_timeLabel.backgroundColor = [UIColor brownColor];
        [self.contentView addSubview:self.publish_timeLabel];
        [_update_stringLabel release];
        
//        self.fromLabel = [[UILabel alloc]init];
//        [self.contentView addSubview:self.fromLabel];
//        [_fromLabel release];
//                          
        
        
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.picimageView.frame = CGRectMake(5, 5, 120, 230);
    self.picimageView.layer.borderWidth = 5;
    self.picimageView.layer.cornerRadius = 15;
    self.picimageView.layer.masksToBounds = YES;
    self.picimageView.layer.borderColor = [UIColor clearColor].CGColor;
    
    self.nameLabel.frame = CGRectMake(135, 5, 375 - 135, 40);
    
    UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(135, 50, 40, 40)];
    label1.text = @"地区:";
    [self.contentView addSubview:label1];
    [label1 release];
    self.areaLabel.frame = CGRectMake(175,50, 60, 40);
    
    UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(215, 50,40,40)];
    label2.text = @"导演:";
    [self.contentView addSubview:label2];
    [label2 release];
    self.directorLabel.frame = CGRectMake(255,50, 80, 40);
    
    UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(135, 100, 40, 40)];
    label3.text = @"主演:";
    [self.contentView addSubview:label3];
    [label3 release];
    self.characterLabel.frame = CGRectMake(175, 100, 375 - 175, 40);
    
    UILabel *label4 = [[UILabel alloc]initWithFrame:CGRectMake(135, 150, 80, 40)];
    label4.text = @"更新时间:";
    [self.contentView addSubview:label4];
    [label4 release];
    self.update_stringLabel.frame = CGRectMake(215, 150, 375 - 215, 40);
    
    UILabel *label5 = [[UILabel alloc]initWithFrame:CGRectMake(135, 200, 80, 40)];
    label5.text = @"上映时间:";
    [self.contentView addSubview:label5];
    [label5 release];
    self.publish_timeLabel.frame = CGRectMake(215, 200, 120, 40) ;
    
    
    
//    UILabel *label6 = [[UILabel alloc]initWithFrame:CGRectMake(5, 240, 120, 40)];
//    label6.text = @"播放源:";
//    label6.font = [UIFont systemFontOfSize:24];
//    [self.contentView addSubview:label6];
//    [label6 release];
//    self.fromLabel.frame = CGRectMake(125, 240, 375 - 65, 40);
   
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
